import { Injectable } from '@nestjs/common';
import { TrackingLoggerService } from './tracking-logger.service';

@Injectable()
export class LogService {
  constructor(
    private trackingLogger: TrackingLoggerService,
  ) {}

  async getLogStats(): Promise<any> {
    return this.trackingLogger.getTodayStats();
  }

  async getBusinessLoopLogs(trackingId: string, date?: string): Promise<any> {
    return this.trackingLogger.getBusinessLoopByTrackingId(trackingId, date);
  }

  async checkBusinessLoopIntegrity(trackingId: string, date?: string): Promise<any> {
    return this.trackingLogger.checkBusinessLoopIntegrity(trackingId, date);
  }
} 